package com.demo.main.service;

import com.demo.main.dao.impl.UserDaoImpl;
import com.demo.main.entity.User;
public class UserService extends BaseService<User, Integer> {
    public UserService() {
        super(new UserDaoImpl());
    }

    public boolean login(User conditionUser) {
        User databaseUser = findOneByCondition(conditionUser);
        return databaseUser != null;
    }
}